/**
 * 查询条件属性
 */
import ClassProperty from './ClassProperty.js';

export default class QueryingProperty extends ClassProperty {

    fuzzy = false;

    static of(object) {
        if (typeof object !== 'object') {
            return undefined;
        }
        let property = new QueryingProperty();
        property.update(object);
        property.ensureId();
        return property;
    }

    clone() {
        return QueryingProperty.of(this);
    }

}
